package com.godofball.todo.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ç”¨æˆ·è¡¨(User)表实体类
 *
 * @author makejava
 * @since 2024-01-01 19:28:34
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User {

    @TableId
    private String id;

    //名称
    private String name;

    //账号
    private String username;

    //密码
    private String password;

    //手机号
    private String phone;

    //角色编码
    private Integer roleCode;

    //创建人
    @TableField(fill = FieldFill.INSERT)
    private String createUsername;

    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUsername;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //删除标识
    private Integer isDelete;
}

